//copyright (c) 2016 L.W.C<lwc@li.cm>
#ifndef NCvar

	#define NCvar 1
	
	#include "vxin.h"
	#include "NCScript.h"
	
	#define FTP_CALL 0
	#define FTP_VM 1
	
	#define VARTP_INT 0
	#define VARTP_DOUBLE 1
	#define VARTP_PCHAR 2;
	
	typedef struct function{
		char *name;
		char type;
		union{
			char* c;
			int (*fun)(NC *nc);
		}u;
	}function;
	
	typedef struct VarSave{
		char *name;
		char type;
		union{
			double d;
			int i;
			char* p_char;
		}u;
	}VarSave;
	
	mrulist* MRU_Push(mrulist *m,void *ptr);
	mrulist* MRU_Pop(mrulist *m,void **ptr);
	mrulist* MRU_loopup(mrulist *m,void *ptr,int (*fun)(void* scr,void* list));
	void Call_Fun(NC *nc,char *name);

#endif